package com.ad.backstage.common.enums;

public enum UserTypeEnum {

    TYPE_DEFAULT(-1, "普通用户"),

    TYPE_0(0, "餐饮"),

    TYPE_1(1, "酒店"),

    TYPE_2(2, "景点"),

    TYPE_3(3, "车服"),

    TYPE_4(4, "加油"),

    TYPE_5(5, "特产"),

    TYPE_6(6, "超市"),

    TYPE_7(7, "医疗保健"),

    TYPE_8(8, "娱乐"),

    TYPE_9(9, "美容美发"),

    TYPE_10(10, "名牌服饰");


    private Integer code;
    private String value;

    UserTypeEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static String[] getArr() {
        String[] enumArr = new String[UserTypeEnum.values().length];
        UserTypeEnum[] values = UserTypeEnum.values();
        for (UserTypeEnum item : values) {
            enumArr[item.getCode()] = item.getValue();
        }
        return enumArr;
    }
}
